package com.forgenet.game.controller;

import com.forgenet.message.PacketId;
import com.sparrow.socket.http.anno.HttpMethod;
import com.sparrow.socket.http.anno.HttpPacketClass;
import com.sparrow.socket.http.bean.HttpResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
@HttpPacketClass
public class GameController {
    private static final Logger logger = LoggerFactory.getLogger(GameController.class);

    @HttpMethod(packetId = PacketId.Consul.REQ_HEATH_CHECK, result = {})
    public HttpResponse reqHealth() {
        logger.info("consul agent 请求健康检查");
        return new HttpResponse(PacketId.Consul.REQ_HEATH_CHECK);
    }

}
